{% extends '../common/common.html' %}
{% block main %}
<div class="box-content">
    {% if content=='' %}
    <div class="web-err">这就尴尬了...此分类暂时还没有数据o(╥﹏╥)o</div>
    {% else %}
    <div class="box-list">
        <ul>
            {% for content in content %}
            <li>
                <div class="list-title">
                    {{ content.title }}
                </div>
                <div class="list-desc">
                    <cite>作者：{{ content.nickname }}</cite>
                    <cite>时间：{{ content.addTime|date('Y-m-d h:i:s',-8*60) }}</cite>
                    <cite>阅读：{{ content.views }}</cite>
                    <cite>评论：{{content['COUNT(p.reviewid)']}}</cite>
                </div>
                <div class="list-conter">
                    {{ content.abstract }}
                </div>
                <div class="list-btn">
                    <a href="/contents?id={{ content.id }}">阅读全文</a>
                </div>
            </li>
            {% endfor %}

        </ul>
    </div>
    {% endif %}

    {% include '../common/pages.html' %}
</div>
{% endblock %}